package com.zypcy.framework.fast.common.util;


import java.util.List;

/**
 * word 表格内容参数
 * zhuyu
 */
public class WordTableParam extends WordBaseParam{

    /**
     * 表格行高
     */
    private int rowHeight = 350;

    /**
     * 列宽
     */
    private int colWidth = 2500;

    /**
     * 表格内边距 - 顶部距离
     */
    private int top = 3;
    /**
     * 表格内边距 - 左边距离
     */
    private int left = 5;
    /**
     * 表格内边距 - 下边距离
     */
    private int bottom = 3;
    /**
     * 表格内边距 - 右边距离
     */
    private int right = 5;
    /**
     * 表头内容
     * 如：{"境内河流","境外河流","合计"}
     */
    private String[] header;
    /**
     * 表格内容
     * [{"境内河流1","境外河流1","合计1"},{"境内河流2","境外河流2","合计2"}]
     */
    private List<String[]> values;

    /**
     * 表格行数 = 表格内容 + 表头(1行)
     * @return
     */
    public int getRows(){
        return values.size() + 1;
    }

    /**
     * 表格列数
     * @return
     */
    public int getCols(){
        return header.length;
    }


    public int getRowHeight() {
        return rowHeight;
    }

    public void setRowHeight(int rowHeight) {
        this.rowHeight = rowHeight;
    }

    public int getColWidth() {
        return colWidth;
    }

    public void setColWidth(int colWidth) {
        this.colWidth = colWidth;
    }

    public int getTop() {
        return top;
    }

    public void setTop(int top) {
        this.top = top;
    }

    public int getLeft() {
        return left;
    }

    public void setLeft(int left) {
        this.left = left;
    }

    public int getBottom() {
        return bottom;
    }

    public void setBottom(int bottom) {
        this.bottom = bottom;
    }

    public int getRight() {
        return right;
    }

    public void setRight(int right) {
        this.right = right;
    }

    public String[] getHeader() {
        return header;
    }

    public void setHeader(String[] header) {
        this.header = header;
    }

    public List<String[]> getValues() {
        return values;
    }

    public void setValues(List<String[]> values) {
        this.values = values;
    }
}
